package com.funnyx.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "spring.es")
@Component
@Data
public class ElasticProp {
  // 集群名称
  private String clusterName;

  // ip
  private String nodes;

  private String user;

  private String password;

  {
    clusterName = "";
    nodes = "";
    user = "";
    password = "";
  }
}
